package com.beone.smart.smartBeauty.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 睡眠信息
 */
@Data
@TableName(value = "sleep_info")
public class SleepInfoRecordDO {
    //记录的主键id
    private String id;
    /**
     * 用户id
     */
    private String userId;
    /**
     * 当前睡眠得分
     */
    private int score;
    //深度睡眠
    private double deepHour;
    //中度
    private double middleHour;
    //浅度睡眠(小时)
    private double shallowHour;
    //正品码
    private String dev_code;
    //设备名称
    private String dev_name;
    private String userName;
    /**
     * 记录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime recordDate;
}
